<template>
  <h1>{{ path }}</h1>
</template>

<script setup>
import { ref, watch } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
const path = ref(route.path);
watch(
  () => route.path,
  () => {
    path.value = route.path;
  }
);
</script>

<style scoped></style>
